package com.example.app.dao.mongdb;

import com.example.app.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/3/4.
 */
@Repository
public interface MongoUserRepository extends MongoRepository<User, Long> {
    List<User> findByAccountIdAndOrganIdAndJobInAndDeleteFlag(Long accountId, Long organId, List<Integer> jobs, int deleteFlag);
    List<User> findByAccountIdAndOrganIdAndJobAndDeleteFlag(Long accountId, Long organId, int job, int deleteFlag);
}
